package com.caocaog.market.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.caocaog.market.entity.GoodsChannelShip;
import com.caocaog.market.vo.GoodBindChannelsVO;

import javax.annotation.Nullable;

public interface IGoodsChannelShipService extends IService<GoodsChannelShip> {
    /**
     * 商品绑定频道信息
     * @param goodBindChannelsVO 商品绑定频道
     */
    void goodBindChannels(GoodBindChannelsVO goodBindChannelsVO);

    /**
     * 清除该频道下的所有商品绑定
     * @param channelId 频道Id
     */
    void clearThisChannelGoodsBind(String channelId);

    /**
     * 清理商品缓存根据频道ID
     * @param channelId 频道ID
     */
    void clearGoodsCacheByChannelId(@Nullable String channelId);

    /**
     * 添加商品绑定信息
     * @param goodsChannelShip 商品绑定信息
     */
    void saveGoodChannelShip(GoodsChannelShip goodsChannelShip);
}
